package com.cartagena.financo.repository;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.cartagena.financo.model.Category;
import com.cartagena.financo.model.Transaction;

public interface TransactionRepository extends BaseRepository<Transaction> {

    List<Transaction> listByPeriod(Date begin, Date end);

    List<Transaction> listByCategory(Category category);

    List<Transaction> listByCategoryAndPeriod(Category cat, Date begin, Date end);

    BigDecimal getPeriodTotal(Date begin, Date end, boolean includes, Category... categories);

}
